using System;
using System.Collections.Generic;

namespace TaxiService.Model
{
  public interface IAggregateRoot : IEventProvider
  {
    void ApplyEvent(IDomainEvent @event);
  }

  public interface IEventProvider
  {
    Guid Id { get; }
    IEnumerable<IDomainEvent> GetChanges();
    void AcceptChanges();
  }
}